package com.bulls.demo.hrmsdemo.db;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the rrp_user database table.
 * 
 */
@Entity
@Table(name="rrpusers")
@NamedQuery(name="fetchUserByName",query="SELECT USERS FROM User AS USERS WHERE USERS.username =:userName")

public class User implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="RRP_USER_USERID_GENERATOR", sequenceName="USER_ID_SEQ")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RRP_USER_USERID_GENERATOR")
	private Long userid;

	@Temporal(TemporalType.DATE)
	private Date datecreated;

	@Temporal(TemporalType.DATE)
	private Date datemodified;

	private String password;

	private String usercreated;

	private String usermodified;

	private String username;

	public User() {
	}



	public Long getUserid() {
		return userid;
	}



	public void setUserid(Long userid) {
		this.userid = userid;
	}



	public Date getDatecreated() {
		return this.datecreated;
	}

	public void setDatecreated(Date datecreated) {
		this.datecreated = datecreated;
	}

	public Date getDatemodified() {
		return this.datemodified;
	}

	public void setDatemodified(Date datemodified) {
		this.datemodified = datemodified;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUsercreated() {
		return this.usercreated;
	}

	public void setUsercreated(String usercreated) {
		this.usercreated = usercreated;
	}

	public String getUsermodified() {
		return this.usermodified;
	}

	public void setUsermodified(String usermodified) {
		this.usermodified = usermodified;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}